package org.cbyyx.tc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cbyyx
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 用户角色
     */
    @TableField(value = "role")
    private String role;

    /**
     * 创建时间
     */
    @TableField(value = "createdTime")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updatedTime")
    private Date updatedTime;

    /**
     * 余额
     */
    @TableField(value = "balance")
    private Long balance;

    private static final long serialVersionUID = 135894523518L;
}